<template>
    <div>
        <h3>组件A</h3>
        <div>{{ dog }}</div>
    </div>
  </template>
  
  <script>
  import Bus from '@/utils/EventBus';

//   接收方
export default{
    data(){
        return {
            dog:{}
        }
    },
    created(){
        Bus.$on('sendMsg',(value)=>{
            this.dog = value
        })
    }
}
  
  </script>
  
  <style>
  
  </style>
  